<template>
  <div class="net-card">
    <div class="header">
      <div class="header-title">
        <span class="title-part">
          <div class="title-icon"></div>
          <div class="title-content">
            <slot name="title"></slot>
          </div>
        </span>
        <span class="subtitle-part">
          <slot name="subtitle"></slot>
        </span>
      </div>
      <div class="header-more">
        <span class="header-more-text">更多</span>
        <span class="header-more-icon"></span>
      </div>
    </div>
    <div class="main">
      <slot>1111</slot>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  setup() {
    return {}
  }
})
</script>

<style scoped lang="less">
.net-card {
  width: 100%;
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .header {
    width: 95%;
    border-bottom: 0.1em solid red;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .header-title {
      display: flex;
      justify-content: center;
      align-items: center;
      .title-part {
        display: flex;
        justify-content: center;
        align-items: center;
        .title-icon {
          width: 30px;
          height: 30px;
          background-image: url('../../../assets/dot.png');
          background-size: cover;
          background-position: center;
        }
        .title-content {
          font-size: 18px;
          font-weight: normal;
        }
      }
      .subtitle-part {
        font-size: 10px;
        font-weight: lighter;
      }
    }
    .header-more {
      display: flex;
      justify-content: center;
      align-items: center;
      .header-more-text {
        font-size: 10px;
        font-weight: lighter;
        &:hover {
          cursor: pointer;
          text-decoration: underline;
        }
      }
      .header-more-icon {
        width: 20px;
        height: 20px;
        background-image: url('../../../assets/arrow.png');
        background-size: cover;
        background-position: center;
      }
    }
  }
  .main {
    width: 95%;
    margin-top: 10px;
  }
}
</style>
